package ua.org.enginer.utils
{
	import flash.utils.describeType;
	import mx.collections.XMLListCollection;
	
	public class ClassUtils
	{
		static public function superClass(clazz:*):String {
			return (clazz is Class) ?
				describeType(clazz).factory.extendsClass[0].@type :
				describeType(clazz).extendsClass[0].@type
		}
		static public function inheritance(clazz:*):Array {
			var list:XMLListCollection = new XMLListCollection(
											(clazz is Class) ? 
												describeType(clazz).factory.extendsClass.@type :
												describeType(clazz).extendsClass.@type );
				return list.toArray();
		}

		
	}
}